﻿using System;
using System.Diagnostics;

namespace Labthink.PCSoft.UniversalHost4.Model.User
{
    /// <summary>
    /// 权限表
    /// </summary>
    [DebuggerDisplay("{Code,nq},NameCn={NameCn,nq},ParentId={ParentId,nq},Type={Type,nq}")] //nq:No Quote 去掉最终显示的引号
    public class Permission
    {
        public int Id { get; set; }
        /// <summary>
        /// 权限码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 权限名称语言编码
        /// </summary>
        public string NameCn { get; set; }

        /// <summary>
        /// 权限名称英文
        /// </summary>
        [Obsolete("数据库只使用NameCn存储语言编码")]
        public string NameEn { get; set; }

        /// <summary>
        /// 上级权限Code (ParentCode)
        /// </summary>
        public string ParentId { get; set; }

        /// <summary>
        /// 权限类型
        /// </summary>
        public int Type { get; set; }

        public int IsNative { get; set; }
    }
}
